.event-title
  %span.author_name= link_to_author event
  %span.event_label{class: event.action_name}
    = event.action_name

  - if !event.target_type
    项目

  - if event.project
    = link_to_project event.project
  - else
    = event.project_name

  - if event.target
    的
    = event.target_type_zh
    %strong= link_to event.target.reference_link_text, [event.project.namespace.becomes(Namespace), event.project, event.target], title: event.target_title

- if event.target.respond_to?(:title)
  .event-body
    .event-note
      = event.target.title
